package com.veepeak.server.domain;

import com.veepeak.server.common.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@DynamicUpdate
@DynamicInsert
@Table(name = "user_obd")
@Data
@EqualsAndHashCode(callSuper = false)
@ToString
public class UserObd extends BaseEntity {
    @ManyToOne
    @JoinColumn(name = "user_id")
    private User user ;

    private String bluetoothName;   //蓝牙名称
    private String bluetoothAddress; //蓝牙地址
    private String obdModel; //OBD产品型号
    private String bindTime; //绑定时间

}
